import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '逻辑删除',
    align:"center",
    dataIndex: 'isDeleted'
  },
  {
    title: '单位名称',
    align:"center",
    dataIndex: 'subContractName'
  },
  {
    title: '售后时长',
    align:"center",
    dataIndex: 'serviceTime'
  },
  {
    title: '产品内容',
    align:"center",
    dataIndex: 'productName'
  },
  {
    title: '产品类型',
    align:"center",
    dataIndex: 'productType'
  },
  {
    title: '售后状态',
    align:"center",
    dataIndex: 'afterSaleStatus'
  },
  {
    title: '子合同id',
    align:"center",
    dataIndex: 'subContractId'
  },
];

//子表列表数据
export const afterSaleMembersColumns: BasicColumn[] = [
  {
    title: '成员姓名',
    align:"center",
    dataIndex: 'name',
    width: 120,
  },
  {
    title: '成员角色',
    align:"center",
    dataIndex: 'role',
    width: 120,
  },
  {
    title: '任务内容',
    align:"left",
    dataIndex: 'assignment',
    ellipsis: true,
    width: 300,
  },
  {
    title: '任务状态',
    align:"center",
    dataIndex: 'completion',
    width: 100,
  },
];

// 高级查询数据
export const superQuerySchema = {
  isDeleted: {title: '逻辑删除',order: 0,view: 'text', type: 'string',},
  subContractName: {title: '子合同名',order: 1,view: 'text', type: 'string',},
  serviceTime: {title: '售后时长',order: 2,view: 'text', type: 'string',},
  productName: {title: '产品内容',order: 4,view: 'text', type: 'string',},
  productType: {title: '产品类型',order: 5,view: 'text', type: 'string',},
  afterSaleStatus: {title: '售后状态',order: 6,view: 'text', type: 'string',},
  subContractId: {title: '子合同id',order: 7,view: 'text', type: 'string',},
};
